get current page slug

121

get current page slug -

$slug = get_queried_object()->post_name;

Comments

Submit
0 Comments